#ifndef WNAVIGATE_H
#define WNAVIGATE_H

#include "table/wtable.h"

#include <QWidget>
#include <QStack>

namespace Ui {
class WNavigate;
}

class WNavigate : public QWidget
{
    Q_OBJECT
public:
    explicit WNavigate(QWidget *parent = 0);
    void add(WTable *table);
    ~WNavigate();
signals:
    void navigation(WTable *);
private slots:
    void on_bPrevious_clicked();
    void on_bNext_clicked();
private:
    void setLabel();
    Ui::WNavigate *ui;
    QStack<WTable *> lTablePrev;
    QStack<WTable *> lTableNext;
};

#endif // WNAVIGATE_H
